<template>
  <div class="center">
    <div class="g-row1">
      <div class="m-profile">
        <div class="g-row">
          <div class="left">
            <img
              class="avatar"
              src="https://yanxuan.nosdn.127.net/8945ae63d940cc42406c3f67019c5cb6.png"
              alt=""
            />
            <div class="info">
              <p class="nickname">用户名字</p>
              <div class="membershipLevel">
                <span class="memberTitle0">普通用户</span>
              </div>
            </div>
          </div>
          <div class="right">
            <a href="">
              <i class="icon-normal u-icon-ucenter-qrCodeInUcenter"></i>
            </a>
            <div class="m-supermcEntrance">
              <i class="u-icon u-icon-ucenter-supermember"></i>
              <div class="word">
                <div class="line1">Pro会员</div>
                <div class="line2">
                  立即开通
                  <i class="u-icon-ucenter-arrow"></i>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="m-myAsset">
      <h2 class="tt">我的资产</h2>
      <div class="assetList">
        <div class="assetItem">
          <p class="assetCount">
            <span class="unit">¥</span>
            <span class="value">0</span>
          </p>
          <p class="asset Name">余额</p>
        </div>
        <div class="assetItem">
          <p class="assetCount">
            <span class="unit"></span>
            <span class="value">0</span>
          </p>
          <p class="asset Name">红包</p>
        </div>
        <div class="assetItem">
          <p class="assetCount">
            <span class="unit"></span>
            <span class="value">0</span>
          </p>
          <p class="asset Name">优惠券</p>
        </div>
        <div class="assetItem">
          <p class="assetCount">
            <span class="unit"></span>
            <span class="value">0</span>
          </p>
          <p class="asset Name">积分</p>
        </div>
        <div class="assetItem">
          <p class="assetCount">
            <span class="unit"></span>
            <span class="value">0</span>
          </p>
          <p class="asset Name">礼品卡</p>
        </div>
      </div>
    </div>
    <div class="data1" style="min-height: 1px">
      <div class="g-row">
        <div class="monthcard">
          <div class="content">
            <i
              class="cardIcon"
              style="
                background: url('https://yanxuan.nosdn.127.net/static-union/1679024383124f83.png')
                  0% 0% / 100% 100% no-repeat;
              "
            ></i>
            <i
              class="class titleIcon"
              style="
                background: url('https://yanxuan.nosdn.127.net/static-union/1679024383363de7.png')
                  0% 0% / 100% 100% no-repeat;
              "
            ></i>
            <span class="text"
              >&nbsp;|
              <span>花3得34元 一笔回本</span>
              <span class="bannerBtn">限时开通</span>
            </span>
          </div>
        </div>
      </div>
    </div>
    <div class="data2" style="min-height: 1px">
      <div class="g-row">
        <div class="m-welfareFissionInfo">
          <img
            class="welfareFissionInfoPic"
            src="https://yanxuan.nosdn.127.net/static-union/1680158533bc5a2f.jpg?type=webp&imageView&thumbnail=800x0&quality=75"
            alt=""
          />
        </div>
      </div>
    </div>
    <div class="g-row3">
      <div class="m-uMenu">
        <ul class="list">
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="我的订单"> -->
            <i class="img u-icon u-icon-ucenter-ulist"> </i>
            <span class="txt">我的订单</span>
            <!-- </a> -->
          </li>
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="帐号管理"> -->
            <i class="img u-icon u-icon-ucenter-uidmanage"> </i>
            <span class="txt">帐号管理</span>
            <!-- </a> -->
          </li>
          <li class="item item-active1">
            <!-- <a class="m-uMenuItem" href="" title="我的手机号"> -->
            <i class="img u-icon u-icon-ucenter-umyphone"> </i>
            <span class="txt">我的手机号</span>
            <!-- </a> -->
          </li>
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="周六一起拼"> -->
            <i class="img u-icon u-icon-ucenter-upin"> </i>
            <span class="txt">周六一起拼</span>
            <!-- </a> -->
          </li>
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="售后服务"> -->
            <i class="img u-icon u-icon-ucenter-uaftersale"> </i>
            <span class="txt">售后服务</span>
            <!-- </a> -->
          </li>
          <li class="item item-active1">
            <!-- <a class="m-uMenuItem" href="" title="邀请返利"> -->
            <i class="img u-icon u-icon-ucenter-ulead"> </i>
            <span class="txt">邀请返利</span>
            <!-- </a> -->
          </li>
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="优先购"> -->
            <i class="img u-icon u-icon-ucenter-upreemption"> </i>
            <span class="txt">优先购</span>
            <!-- </a> -->
          </li>
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="积分中心"> -->
            <i class="img u-icon u-icon-ucenter-upoints"> </i>
            <span class="txt">积分中心</span>
            <!-- </a> -->
          </li>
          <li class="item item-active1">
            <!-- <a class="m-uMenuItem" href="" title="会员俱乐部"> -->
            <i class="img u-icon u-icon-ucenter-umembershipBenefits"> </i>
            <span class="txt">会员俱乐部</span>
            <!-- </a> -->
          </li>
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="地址管理"> -->
            <i class="img u-icon u-icon-ucenter-uaddress"> </i>
            <span class="txt">地址管理</span>
            <!-- </a> -->
          </li>
          <li class="item">
            <!-- <a class="m-uMenuItem" href="" title="支付安全"> -->
            <i class="img u-icon u-icon-ucenter-usecurity"> </i>
            <span class="txt">支付安全</span>
            <!-- </a> -->
          </li>
          <li class="item item-active1">
            <!-- <a class="m-uMenuItem" href="" title="帮助与客服"> -->
            <i class="img u-icon u-icon-ucenter-uhelp-kefu"> </i>
            <span class="txt">帮助与客服</span>
            <!-- </a> -->
          </li>
          <li class="item item-active2">
            <!-- <a class="m-uMenuItem" href="" title="意见反馈"> -->
            <i class="img u-icon u-icon-ucenter-ufeedback"> </i>
            <span class="txt">意见反馈</span>
            <!-- </a> -->
          </li>
          <li class="item item-active2">
            <!-- <a class="m-uMenuItem" href="" title="我的竞拍"> -->
            <i class="img u-icon u-icon-ucenter-auction"> </i>
            <span class="txt">我的竞拍</span>
            <!-- </a> -->
          </li>
        </ul>
      </div>
    </div>
    <div class="g-row4">
      <button class="w-button">退出登录</button>
    </div>
    <TabBar></TabBar>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'Center',
})
</script>

<script lang="ts" setup>
import TabBar from '@/components/TabBar/index.vue'

// const logout = async () =>{
//   await
// }
</script>

<style scoped lang="scss">
.center {
  width: 100%;
  height: 100%;
  padding-bottom: 70px;
  background-color: rgb(238, 238, 238);
  .g-row1 {
    .m-profile {
      height: 135px;
      background-image: url(https://yanxuan.nosdn.127.net/5905098f74e04c39fa5e76ebb9ff591b.png);
      background-size: 100%;
      background-position: bottom;
      padding-left: 15px;
      overflow: hidden;
      .g-row {
        display: flex;
        align-items: center;
        width: 360px;
        .left {
          display: flex;
          flex-wrap: wrap;
          -webkit-box-pack: start;
          justify-content: flex-start;
          padding: 32px 0;
          width: 240.5px;
          .avatar {
            width: 71px;
            height: 71px;
            border-radius: 50%;
            vertical-align: middle;
          }
          .info {
            -webkit-box-flex: 1;
            flex: 1;
            line-height: 1;
            overflow: hidden;
            padding-left: 15px;
            .nickname {
              color: #fff;
              font-size: 18px;
              line-height: 22px;
              text-align: left;
              margin-bottom: 5px;
              text-overflow: ellipsis;
              white-space: nowrap;
              overflow: hidden;
            }
            .membershipLevel {
              .memberTitle0 {
                color: #fff;
                font-size: 14px;
                vertical-align: middle;
              }
            }
          }
        }
        .right {
          position: relative;
          width: 119.5px;
          padding-left: 8.5px;
          height: 100%;
          .icon-normal {
            position: absolute;
            right: 7.2px;
            top: 7.3px;
            width: 32px;
            height: 32px;
            background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-mall-wap/assets/img/ucenter-11eb865ad061b2dd08d2ec54d87461d6.png);
            display: inline-block;
            vertical-align: middle;
            background-size: 160.5px 139px;
          }
          .m-supermcEntrance {
            margin-top: 52px;
            padding: 0 10px 0 5px;
            white-space: nowrap;
            width: 111px;
            height: 42px;
            border-top-left-radius: 32px;
            border-bottom-left-radius: 32px;
            overflow: hidden;
            -webkit-animation: shake 1s linear;
            animation: shake 1s linear 3;
            background-image: -webkit-gradient(
              linear,
              left top,
              left bottom,
              from(#574e44),
              to(#0e0e0e)
            );
            background-image: linear-gradient(180deg, #574e44, #0e0e0e);
            .u-icon {
              margin: auto 4.5px;
              background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-mall-wap/assets/img/ucenter-11eb865ad061b2dd08d2ec54d87461d6.png);
              display: inline-block;
              vertical-align: middle;
              width: 28px;
              height: 28px;
              background-size: 160.5px 139px;
              background-position: -350.427px -33.4px;
            }
            .word {
              display: inline-block;
              padding: 5px 0;
              color: #ede7db;
              vertical-align: middle;
              .line1 {
                font-size: 12px;
                line-height: 18px;
                color: #f9e0c0;
              }
              .line2 {
                font-size: 12px;
                line-height: 18px;
                vertical-align: middle;
                color: #f9e0c0;
                .u-icon-ucenter-arrow {
                  margin-left: 2.4px;
                  margin-top: -2.4px;
                  width: 9px;
                  height: 9px;
                  background-position: -143.87px -24.48px;
                  background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-mall-wap/assets/img/ucenter-11eb865ad061b2dd08d2ec54d87461d6.png);
                  display: inline-block;
                  vertical-align: middle;
                  background-size: 160.5px 139px;
                }
              }
            }
          }
        }
      }
    }
  }
  .m-myAsset {
    width: 375px;
    height: 142.5px;
    background-color: #fff;
    border-bottom: 10px solid #f4f4f4;
    .tt {
      margin-left: 15px;
      margin: auto 0 auto 15px;
      border-bottom: 0.5px solid #d9d9d9;
      text-align: left;
      line-height: 48px;
      font-size: 14px;
      font-weight: normal;
    }
    .assetList {
      position: relative;
      text-align: center;
      display: flex;
      justify-content: space-between;
      .assetItem {
        position: relative;
        height: 80px;
        flex-shrink: 0;
        -webkit-box-flex: 1;
        flex-grow: 1;
        .assetCount {
          margin-bottom: 2.4px;
          font-size: 15px;
          line-height: 23px;
          font-weight: 700;
        }
      }
    }
  }
  .data1 {
    .g-row {
      .monthcard {
        height: 55px;
        width: 100%;
        display: block;
        margin: -10px 0 10px;
        padding: 0 10px 10px;
        background-color: #fff;
        .content {
          margin-top: -30px;
          background: #fff6f4;
          border: 1px solid rgba(221, 26, 33, 0.1);
          box-sizing: border-box;
          border-radius: 10px;
          width: 355px;
          height: 45px;
          display: flex;
          flex-flow: row nowrap;
          align-items: center;
          overflow: hidden;
          padding: 0 10px;
          font-size: 12px;
          white-space: nowrap;
          .cardIcon {
            display: inline-block;
            margin-left: 2px;
            vertical-align: middle;
            width: 39.2px;
            height: 39.2px;
            transform: scaleX(0.65) scaleY(0.6);
          }
          .titleIcon {
            display: inline-block;
            margin-left: -32px;
            vertical-align: middle;
            width: 128.787px;
            height: 29.453px;
            transform: scaleX(0.5) scaleY(0.5);
          }
          .text {
            margin-left: -28px;
            color: #333;
            font-weight: lighter;
          }
          .bannerBtn {
            display: inline-block;
            margin-left: 30px;
            padding: 0 5px;
            width: 68px;
            height: 22px;
            line-height: 22px;
            font-size: 14px;
            text-align: center;
            color: #fff;
            background: #dd1a21;
            border-radius: 20px;
          }
        }
      }
    }
  }
  .data2 {
    .g-row {
      width: 375px;
      height: 68.87px;

      .m-welfareFissionInfo {
        width: 375px;
        height: 68.87px;
        display: flex;
        justify-content: center;
        background-color: #fff;
        padding: 10px 0;
        .welfareFissionInfoPic {
          width: 345px;
          height: 47.87px;
        }
      }
    }
  }
  .g-row3 {
    width: 375px;
    .m-uMenu {
      margin-bottom: 20px;
      background: #fff;
      .list {
        width: 100%;
        height: 454px;
        display: flex;
        flex-wrap: wrap;
        border-top: 1px solid #d9d9d9;
        .item {
          position: relative;
          display: flex;
          width: 33.33333%;
          height: 90px;
          line-height: 90px;
          justify-content: center;
          align-items: center;
          border-right: 1px solid rgba(0, 0, 0, 0.15);
          border-bottom: 1px solid rgba(0, 0, 0, 0.15);
          box-sizing: border-box;

          .img {
            display: inline-block;
            width: 25px;
            height: 25px;
            margin-bottom: 26px;
            background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-mall-wap/assets/img/ucenter-11eb865ad061b2dd08d2ec54d87461d6.png);
            background-size: 160.5px 139px;
          }
          .txt {
            display: flex;
            position: absolute;
            top: 60%;
            font-size: 12px;
            height: 17px;
            line-height: 17px;
            text-align: center;
            color: #333;
            white-space: nowrap;
          }
          .u-icon-ucenter-ulist {
            background-position: 206px 113px;
          }
          .u-icon-ucenter-uidmanage {
            background-position: 295px 25px;
          }
          .u-icon-ucenter-umyphone {
            background-position: 179.6px 140px;
          }
          .u-icon-ucenter-upin {
            background-position: 203.5px -76px;
          }
          .u-icon-ucenter-uaftersale {
            background-position: 230px 141px;
          }
          .u-icon-ucenter-ulead {
            background-position: 204px 140px;
          }
          .u-icon-ucenter-upreemption {
            background-position: 267px 52px;
          }
          .u-icon-ucenter-upoints {
            background-position: 204px 86px;
          }
          .u-icon-ucenter-umembershipBenefits {
            background-position: 295px 25px;
          }
          .u-icon-ucenter-uaddress {
            background-position: 295px 77px;
          }
          .u-icon-ucenter-usecurity {
            background-position: 321px 26px;
          }
          .u-icon-ucenter-uhelp-kefu {
            background-position: 255px 139px;
          }
          .u-icon-ucenter-ufeedback {
            background-position: 228px 113px;
          }
          .u-icon-ucenter-auction {
            background-position: 282px 140px;
          }
        }
        .item-active1 {
          border-right-style: none;
        }
        .item-active2 {
          border-bottom-style: none;
        }
      }
    }
  }
  .g-row4 {
    .w-button {
      display: block;
      width: 100%;
      height: 48px;
      background-color: #fff;
      border: #fff;
    }
  }
}
</style>
